package com.jiajunsong.blog.repository;

import java.util.Collection;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.jiajunsong.blog.domain.User;

public interface UserRepository extends JpaRepository<User, Long> {

	//根据nickname查询用户
	User findByNickname(String nickname);
	
	User findByUsername(String username);
	
	User findByPhone(String phone);
	
	List<User> findByUsernameIn(Collection<String> usernames);
}
